// 评论管理
import http from "@/utils/request";
export default {
  getList(params) {
    //全部列表
    return http.post("/rest/admin/comment/search", params);
  },
  waitAuditSearch(params) {
    //待审批列表
    return http.post("/rest/admin/comment/waitAuditSearch", params);
  },
  audit(params) {
    //审批
    return http.post("/rest/admin/comment/audit", params);
  },
  // 删除
  deleteRows(params) {
    return http.post("/rest/admin/comment/batchDel", params);
  },
  // 撤销回复
  back(params) {
    return http.post("/rest/admin/comment/delreply", params);
  },
  addComment(params) {
    // 回复
    return http.post("/rest/admin/comment/reply", params);
  },
  getDetail(params) {
    // 详情
    return http.post("/rest/admin/comment/detail", params);
  }
};
